package com.huilian.iotbox.admin.service.impl;

import com.huilian.iotbox.admin.dao.UserPermissionDao;
import com.huilian.iotbox.admin.service.UserPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserPermissionServiceImpl implements UserPermissionService {

    @Autowired
    private UserPermissionDao userPermissionDao;

    @Override
    public int deleteByPermissionId(Integer permissionId) {
        return userPermissionDao.deleteByPermissionId(permissionId);
    }

    @Override
    public int updateSelectByPermissionId(Integer permissionId, boolean selected) {
        return userPermissionDao.updateSelectByPermissionId(permissionId, selected);
    }
}
